package com.guodi.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @描述：指标上报值表
 * @作者: 彭辉
 * @日期: 2020-06-05
 */
@Getter
@Setter
@EqualsAndHashCode
@ApiModel(value="指标上报值表")
public class IdtReportValue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "年份")
    private Integer year;

    @ApiModelProperty(value = "行政区划编码")
    private String divisionCode;

    @ApiModelProperty(value = "上报值")
    private String value;

    @ApiModelProperty(value = "是否符合达标率（上报值对比目标值 ：1-达标，0-未达标）")
    private Integer isStandard;

    @ApiModelProperty(value = "是否符合统一率（上报值等于监测值：1-统一，0-未统一）")
    private Integer isUnify;

    @ApiModelProperty(value = "预警状态")
    private String warnStatus;

    @ApiModelProperty(value = "汇总状态（complete：完成汇总，part：汇总部分、auto：自主上报）")
    private String sumStatus;

    @ApiModelProperty(value = "汇总说明")
    private String sumExplain;

    @ApiModelProperty(value = "指标说明")
    private String explain;

    @ApiModelProperty(value = "指标id")
    private String indicatorsId;

    @ApiModelProperty(value = "机构id")
    private String orgId;

    @ApiModelProperty(value = "创建人",hidden = true)
    private String creator;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "修改人",hidden = true)
    private String modifier;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date modifyTime;

    @ApiModelProperty(value = "指标名称",hidden = true)
    @TableField(exist = false)
    private String idtName;

    @ApiModelProperty(value = "指标编号",hidden = true)
    @TableField(exist = false)
    private String idtCode;

    @ApiModelProperty(value = "指标单位",hidden = true)
    @TableField(exist = false)
    private String idtUnit;

    @TableField(exist = false)
    @ApiModelProperty(value = "行政区划名称", hidden = true)
    private String divisionName;

    @TableField(exist = false)
    @ApiModelProperty(value = "监测值", hidden = true)
    private String monitorValue;

    @TableField(exist = false)
    @ApiModelProperty(value = "责任单位", hidden = true)
    private String idtDutyCompany;

    @TableField(exist = false)
    @ApiModelProperty(value = "责任处室", hidden = true)
    private String idtDutyDepartment;

    @ApiModelProperty(value = "原数据",hidden = true)
    @TableField(exist = false)
    private String oldValue;
}
